﻿
@{
    ViewBag.Title = "Department";
    Layout = "~/Views/Shared/Index.cshtml";
}
@model List<YaYun.Models.Department>
<h2>部门表</h2>

<table class="layui-table layui-form">
    <tr>
        <th class="emp_id_td">部门编号</th>

        <th class="emp_tr_t">部门名称</th>
        <th class="emp_tr_t">部门主管</th>
        <th class="emp_tr_t">主管邮箱</th>
    </tr>
    @foreach (var item in Model)
    {
        <tr class="tr_hover">
            <td class="emp_id_td">@item.department_id</td>

            <td class="emp_tr_t">@item.DepartmentName</td>
            <td class="emp_tr_t">@item.Leader1.leader_name</td>
            <td class="emp_tr_t">@item.Leader1.leader_email</td>
        </tr>
    }
</table>